import random


def decorator(func):
    """被装饰函数将被调用5次"""

    def wrapper(*args, **kwargs):
        mubiao = []
        for i in range(5):
            result = func(*args, **kwargs)
            mubiao.append(result)

        return mubiao

    return wrapper


@decorator
def func():
    return random.randint(1, 4)


result = func()
print(result)
